<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
     function b (str) {
    var a = str.length;
    
    for(let i=0; i<str.length; i++){
      if(str.charCodeAt(i)>255){
        a++;
      }
    }
    return a;
    }
  </script>
</body>
</html>